Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cli): publish: Fix panic + Make waiting for build results more modular #4410

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

theduke
Copy link
Contributor

@theduke theduke commented Jan 25, 2024

  • Fixes a panic due to nested tokio runtimes

  • Exposes a --wait flag, which only waits for the container, and a
    --wait-all flag, which also waits for bindings and native executables.

Also adds a timeout for waiting.

@theduke theduke requested a review from syrusakbary as a code owner January 25, 2024 19:59
@theduke theduke changed the title fix(cli): publish: Fix panick + Make waiting for build results more modular fix(cli): publish: Fix panic + Make waiting for build results more modular Jan 25, 2024
@theduke theduke requested a review from ayys January 25, 2024 20:01
@ayys
Copy link
Member

ayys commented Jan 26, 2024

Have you considered making it, so users can do --wait=[webc|bindings|native-exes|all]?
wasmer publish --wait would wait for all. Or I can wait for just the webc and bindings if that's what I care about with wasmer publish --wait=webc,bindings.

@theduke
Copy link
Contributor Author

theduke commented Jan 26, 2024

@ayys I actually did, sadly that's a bit of a pain with clap, there is no way to do it with the derive, we'd have to right the parser impl by hand.

@theduke theduke force-pushed the cli-publish-wait-improvements branch 2 times, most recently from 0fdd68b to feb4ee4 Compare January 26, 2024 13:01
…odular

* Fixes a panic due to nested tokio runtimes

* Exposes a --wait flag, which only waits for the container, and a
--wait-all flag, which also waits for bindings and native executables.
@theduke theduke force-pushed the cli-publish-wait-improvements branch from feb4ee4 to 7055657 Compare January 26, 2024 14:05
@theduke theduke enabled auto-merge (rebase) January 26, 2024 14:17
@theduke theduke merged commit 5ecd2e5 into master Jan 26, 2024
52 checks passed
@theduke theduke deleted the cli-publish-wait-improvements branch January 26, 2024 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants